home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / dos / c / arrays.exe / ARRAYS.DSK (.txt) < prev    next >
Turbo C Context File  |  1991-10-29  |  2KB  |  63 lines

  1. Turbo C Context File 
  2. ARRAYS.C
  3. ARRAYS.CPP
  4. *.CPP
  5. \BCC\SMALLDOS.INF
  6. \BCC\INC\*.*
  7. SMALLDOS.INF
  8. \BCC\BCC.INF
  9. \BCC\INCLUDE\*.*
  10. \WINDEV\WINDEV.INF
  11. WINCLASS
  12. WNCLASS
  13. paXExt
  14. register
  15. define
  16. defWndProc
  17. PASCAL
  18. DefWndProc
  19. MessageBox
  20. WNDCLASS
  21. DWORD
  22. *.CPP
  23. ARRAYS.C
  24. ARRAYS.CPP
  25. C:\BCC\INCLUDE\WINDOWS.H
  26. C:\TPW\OWL\WINDOWS.H
  27. C:\ORCMID\DESKTOP\SAMPLE.CPP
  28. C:\ORCMID\DESKTOP\SAMPLE.CPP
  29. C:\WINDEV\WINDEV.INF
  30. C:\BCC\BCC.INF
  31. C:\WINDEV\WINDEV.INF
  32. C:\BCC\NONAME00.CPP
  33. C:\ORCMID\POOL.C
  34. C:\BCC\SMALLDOS.INF
  35. C:\BCC\ARRAYS.CPP
  36. C:\BCC\ARRAYS.C
  37. C:\BCC\ARRAYS.CPP
  38. C:\BCC\ARRAYS.C
  39. C:\BCC\ARRAYS.C
  40.         Pixel(int InitX, int InitY)
  41.              :Location(InitX, InitY)
  42.              {Visible = false;
  43.             // Always start as invisible
  44.               color = getcolor();
  45.             // but assume current foreground color, just in case
  46.         Boolean IsVisible(void)
  47.              {return Visible;}
  48.             // Tell if visible, if some need to know
  49.         void Show(void)
  50.              {putpixel(ValX, ValY, color);
  51.               Visible = true;}
  52.             // Showing a color always touches the screen
  53.         void Show(int acolor)
  54.              {color = acolor;
  55.               Show();}
  56.             // Default showing always uses the last color
  57.         void Hide(void)
  58.              {if (Visible) putpixel(ValX, ValY, getbkcolor());
  59.               Visible = false;}
  60.         void MoveTo(int NewX, int NewY)
  61.              {ValX = NewX; ValY = NewY;
  62.               if (Visible) Show();}
  63.